package com.apes.crm.business.repository;

import com.apes.crm.business.model.InsuranceCompany;
import com.apes.crm.business.model.InsuranceCompanyDetail;
import com.apes.framework.jpa.repository.CustomRepository;
import com.apes.scm.masterdata.area.model.Area;

/**
 * @Classname 保险公司明细
 * @Description TODO
 * @Date 2020年9月3日13:36:27
 * @Created by zzx
 */
public interface InsuranceCompanyDetailRepository extends CustomRepository<InsuranceCompanyDetail, String> {

    InsuranceCompanyDetail findByInsuranceCompanyAndProvinceAndCity(InsuranceCompany insuranceCompany, Area province, Area city);

    InsuranceCompanyDetail findByProvinceAndCity(Area province, Area city);
}
